package com.feign.blog;

import com.lhs.entity.blog.article_search;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "blog-service")
public interface BlogFeignClient {

    /**
     * 从博客服务获取全部博客数据
     */
    @GetMapping("/blog/api/all")
    List<article_search> getAllBlogs();
}